
import { getInfo } from "@/api/login"
//获取用户信息
export async function getUserInfo() {
    const userInfo = await getInfo()
    return userInfo
}
 
//设置用户信息
export function setUserInfo(userInfo) {
    uni.setStorageSync('userInfo', userInfo)
}
//退出登录
export function logout(){
    uni.removeStorageSync('isLogin');
    uni.removeStorageSync('userInfo');
}


